﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AddIn.EA.Core.Common;
using AddIn.EA.Framework;


namespace AddIn.EA.Architecture.Presentation
{
    [AddInMenu("Check Structure")]
    public partial class CheckStructure : BaseAddInArchitecture
    {
        public CheckStructure()
        {
            InitializeComponent();
        }

        private void btnExecute_Click(object sender, EventArgs e)
        {
            Package packageArquitetura = base.Repository.Models[0];
            new ComponentLogic.CheckStructure().CheckPackage(packageArquitetura);
        }


        protected override bool CheckShowForm(AddIn.EA.Framework.Common.IElement selectedElement, MenuLocation location)
        {
            return true;
        }
    }
}
